package com.jh.paymentchannel.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

@Entity
@Table(name = "t_spend")
public class Spend implements Serializable {
	@Id
	@Column(name = "id")
	private long id;
	@Column(name = "status")
	private String status;
	@Column(name = "message")
	private String message;
	@Column(name = "amount")
	private String amount;
	@Column(name = "pay_card")
	private String payCard;
	@Column(name = "user_id")
	private String userId;
	@Column(name = "bind_id")
	private String bindId;
	@Column(name = "batch_no")
	private String batchNo;
	@Column(name = "execution_time")
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date executionTime;
	@Column(name = "order_code")
	private String orderCode;
	@Column(name = "order_son")
	private String orderSon;


	public String getOrderSon() {
		return orderSon;
	}

	public void setOrderSon(String orderSon) {
		this.orderSon = orderSon;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getBindId() {
		return bindId;
	}

	public void setBindId(String bindId) {
		this.bindId = bindId;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getPayCard() {
		return payCard;
	}

	public void setPayCard(String payCard) {
		this.payCard = payCard;
	}


	public Date getExecutionTime() {
		return executionTime;
	}

	public void setExecutionTime(Date executionTime) {
		this.executionTime = executionTime;
	}

	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}

	public String getBatchNo() {
		return batchNo;
	}

	public void setBatchNo(String batchNo) {
		this.batchNo = batchNo;
	}


}
